<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Index2</title>
</head>
<body>
  Index2

  <iframe src="index3.html" id="myIframe" frameborder="0"></iframe>
  <script>
    window.name = 'IframeWindowå'

    const iframe = document.getElementById('myIframe')

    iframe.onload = function () {
      console.log(window.parent)
    }
  </script>
</body>
</html>